'''
Created on 31/lug/2011

@author: Luigi Poderico
'''

import Generator
import Serializer
import Parameters

def main():
    Parameters.checkParameters()
    
    myFile = open("roadef2010", "w")
    
    myInstanceGenerator = Generator.Generator()
    mySerializer = Serializer.Serializer(myFile)
    
    myInstance = myInstanceGenerator.generate()
    mySerializer.serialize(myInstance)
    pass

if __name__ == '__main__':
    main()